/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       saved_game_header.h

	$Header: /game/saved_game_header.h $

	$NoKeywords: $

 ************************************************************************/

#ifndef SAVED_GAME_HEADER_H_INCLUDED
#define SAVED_GAME_HEADER_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <string>

#include "campaign_file_ref.h"

class t_progress_handler;
enum t_difficulty;

// ---------------------------------------------------------------------------
// file information for saved games
// ---------------------------------------------------------------------------
struct t_saved_game_header
{
	int					version;
	int					random_seed;
	std::string			map_description;
	t_difficulty		map_difficulty;
	t_campaign_file_ref	map_file_ref;
	std::string			map_name;
	int					map_number;
	bool				multi_scenario;
	int					size;
	int					levels;
	int					map_random_seed;
	t_difficulty		player_difficulty;
	int					turn_duration_index;
	bool				guards_can_move;
};

bool read( std::streambuf& buffer, t_saved_game_header& header, t_progress_handler* handler );
bool write( std::streambuf& buffer, t_saved_game_header const& header );

#endif // MAP_FILE_HEADER_H_INCLUDED
